import settings from '@/settings.js'
export default {
	namespaced: true,
	state: {
		token: '',
		isLogin: false,
		tenantCode: '',
		userInfo : {},
		roleType: 1, //1:员工 2.车主,
		phone:'',//车主手机号
	},
	mutations: {
		saveToken(state, token) {
			state.token = token;
		},
		saveIsLogin(state, isLogin) {
			state.isLogin = isLogin;
		},
		saveTenantCode(state, tenantCode) {
			state.tenantCode = tenantCode;
		},
		saveUserInfo(state, userInfo) {
			state.userInfo = userInfo;
		},
		saveRoleType(state, roleType) {
			state.roleType = roleType;
		},
		savePhone(state, phone) {
			state.phone = phone;
		}
		
	}
}
